/*    */ package com.umeng.analytics.a;
/*    */ 
/*    */ import com.umeng.common.Log;
/*    */ import org.json.JSONObject;
/*    */ 
/*    */ public class e extends l
/*    */   implements g
/*    */ {
/*    */   public String a;
/*    */   public String b;
/*    */   public int c;
/*    */   public long d;
/* 20 */   private final String k = "tag";
/* 21 */   private final String l = "label";
/* 22 */   private final String m = "acc";
/* 23 */   private final String n = "du";
/*    */ 
/*    */   public e()
/*    */   {
/*    */   }
/*    */ 
/*    */   public e(String paramString1, String paramString2, String paramString3, int paramInt, long paramLong)
/*    */   {
/* 33 */     this.e = paramString1;
/*    */ 
/* 35 */     this.a = paramString2;
/* 36 */     this.b = paramString3;
/*    */ 
/* 38 */     this.c = paramInt;
/* 39 */     this.d = paramLong;
/*    */   }
/*    */ 
/*    */   public boolean a() {
/* 43 */     if (this.a == null) {
/* 44 */       Log.b("MobclickAgent", "mTag is not initilized");
/* 45 */       return false;
/*    */     }
/*    */ 
/* 48 */     if ((this.c <= 0) || (this.c > 10000)) {
/* 49 */       Log.b("MobclickAgent", "mAcc is invalid : " + this.c);
/* 50 */       return false;
/*    */     }
/* 52 */     return super.a();
/*    */   }
/*    */ 
/*    */   public void a(JSONObject paramJSONObject)
/*    */   {
/* 57 */     if (paramJSONObject == null) return;
/*    */     try
/*    */     {
/* 60 */       super.a(paramJSONObject);
/*    */ 
/* 62 */       this.a = paramJSONObject.getString("tag");
/*    */ 
/* 64 */       if (paramJSONObject.has("label")) {
/* 65 */         this.b = paramJSONObject.getString("label");
/*    */       }
/*    */ 
/* 68 */       this.c = paramJSONObject.getInt("acc");
/*    */ 
/* 70 */       if (paramJSONObject.has("du"))
/* 71 */         this.d = paramJSONObject.getLong("du");
/*    */     }
/*    */     catch (Exception localException) {
/* 74 */       localException.printStackTrace();
/*    */     }
/*    */   }
/*    */ 
/*    */   public void b(JSONObject paramJSONObject)
/*    */     throws Exception
/*    */   {
/* 81 */     paramJSONObject.put("tag", this.a);
/* 82 */     paramJSONObject.put("acc", this.c);
/*    */ 
/* 84 */     if (this.b != null) {
/* 85 */       paramJSONObject.put("label", this.b);
/*    */     }
/* 87 */     if (this.d > 0L) {
/* 88 */       paramJSONObject.put("du", this.d);
/*    */     }
/*    */ 
/* 91 */     super.b(paramJSONObject);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.analytics.a.e
 * JD-Core Version:    0.6.2
 */